JavaScript Step by Step
Author: Steve Suehring , Date: June 17, 2017
, Views: 213
<script type="text/javascript"> <!-- //Begin Comment var helloelem = document.getElementById("hello"); alert(helloelem.innerHTML); // End Comment--> </script>
Unfortunately, not every browser obeys these HTML comments, so you still encounter errors sometimes. This style of commenting, or protection, is becoming less and less common. As the old browsers slowly get cycled out, this type of workaround isn’t really necessary.
Whatever falls between the <NOSCRIPT> </NOSCRIPT> tag pairs is displayed only when the page detects no JavaScript support in the browser. Here’s an example of <NOSCRIPT>:
Download
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.